package com.qf.hospital.DTO;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @author 何星宇
 * @version V1.0
 * @Date 2021/10/18 11:35
 */
public class AddUserDTO {

    @NotBlank(message = "登陆名称为必填项，不可为空")
    private String loginName;

    @NotBlank(message = "身份证号为必填项，不可为空")
    private String identity;

    @NotBlank(message = "用户姓名为必填项，不可为空")
    private String realName;

    @NotNull(message = "用户性别为必填项，不可为空")
    private Integer sex;

    @NotBlank(message = "用户地址为必填项，不可为空")
    private String address;

    @NotBlank(message = "用户电话为必填项，不可为空")
    private String phone;

    /**
     * 密码
     */
    private String pwd;

    @NotBlank(message = "用户描述为必填项，不可为空")
    private String position;

    /**
     * 1，超级管理员,2，系统用户
     */
    private Integer type;

    @NotNull(message = "是否可用为必填项，不可为空")
    private Integer available;

    /**
     * 盐
     */
    private String salt;

    @Override
    public String toString() {
        return "AddUserDTO{" +
                "loginName='" + loginName + '\'' +
                ", identity='" + identity + '\'' +
                ", realName='" + realName + '\'' +
                ", sex=" + sex +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                ", pwd='" + pwd + '\'' +
                ", position='" + position + '\'' +
                ", type=" + type +
                ", available=" + available +
                ", salt='" + salt + '\'' +
                '}';
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }
    public void setLoginname(String loginName) {
        this.loginName = loginName;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }
    public void setRealname(String realName) {
        this.realName = realName;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getAvailable() {
        return available;
    }

    public void setAvailable(Integer available) {
        this.available = available;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }
}
